import request from '@/utils/request'

// 配置
export function getConfig() {
    return request.get({ url: '/config/getConfig' })
}

// 工作台主页
export function getWorkbench() {
    return request.get({ url: '/workbench/index' })
}

//字典数据
export function getDictData(params: any) {
    return request.get({ url: '/config/dict', params })
}
//团长排行数据
export function teamheadLists(params: any) {
    return request.get({ url: '/workbench/teamheadLists', params })
}
//商品排行数据
export function getgoodsLists(params: any) {
    return request.get({ url: '/workbench/goodsLists', params })
}
//用户消费排行
export function getuserLists(params: any) {
    return request.get({ url: '/workbench/userLists', params })
}

//正版检测
export function apiCheckLegal(params: any) {
    return request.get({ url: '/config/checkLegal', params })
}

//检测新版本
export function apiCheckVersion(params: any) {
    return request.get({ url: '/config/checkVersion', params })
}


// 配置
export function getWorkbenchInfo() {
    return request.post({ url: '/admin.auth.other/total' })
}
